﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" Theme="DefaultSkin" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>登陆到我的生活</title>
    <script type="text/javascript">
       
        //不在框架页中打开Login页面
        window.onload=function()
        {
            if(window.top != self)
            {
               window.top.location.href = self.location.href;
            }
        } 
        
        function checkLogin()
        {
            if( document.getElementById('txtUserName') .value == '')
            {
                alert('请填写用户名!');
                return false;
            }
            
             if( document.getElementById('txtPassWord') .value == '')
            {
                alert('请填写密码!');
                return false;
            }
            
            return true;
        }
    </script>
</head>
<body style="margin-top:50px;text-align:center">

    <form id="form1" runat="server" onsubmit="return checkLogin();">
    <div class="EditMain" style="width:260px"  style=""  >
    
    <table cellpadding="0" cellspacing="0" border="0"  style="width:250px" 
            align="center">
    <tr>
        <td colspan="2"  style="text-align: -moz-center !important;"><b>我的生活</b></td>
    </tr>
    <tr style="height:30px">
        <td><b>UserName:</b></td>
        <td>
            <asp:TextBox ID="txtUserName" runat="server"  ></asp:TextBox>
        </td>
    </tr>
    <tr style="height:30px">
         <td><b>PassWord:</b></td>
         <td>
            <asp:TextBox ID="txtPassWord" runat="server" TextMode="Password"></asp:TextBox>
         </td>
    </tr>
    <tr  style="height:60px;line-height:60px">
        <td colspan="2" align="center">
            <asp:Button ID="btnLogin" runat="server" Text="Login" onclick="btnLogin_Click" />
        </td>
    </tr>
    <tr style="display:none">
        <td colspan="2" align="center">
            <asp:CheckBox ID="chkCookie" runat="server" Text="两周内不在登陆" TextAlign="Right" />
        </td>
    </tr>
    <tr style="height:50px">
        <td colspan="2" align="center">
            <a href="http://www.miibeian.gov.cn/">粤ICP备09199525号</a>
        </td>
    </tr>
    </table>
    
    </div>
    
    
    <div style="margin-top:120px;text-align:center;">
        
    </div>
    
    </form>
    
</body>
</html>
